public class findMaxConsecutiveOnes {
    public static void main(String[] args) {
        Solution solution = new Solution();
        System.out.println(solution.findMaxConsecutiveOnes(new int[]{1, 1, 0, 0, 1, 1, 1, 0, 1, 1}));
    }
}
